package com.agileboot.attendance.domain.order.entity;

import com.agileboot.common.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单人员关联实体类
 * 
 * @author agileboot
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("att_order_personnel")
public class AttOrderPersonnelEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 人员ID
     */
    @TableField("personnel_id")
    private Long personnelId;

    /**
     * 开始日期
     */
    @TableField("start_date")
    private Date startDate;

    /**
     * 结束日期
     */
    @TableField("end_date")
    private Date endDate;

    /**
     * 状态（0正常 1已解除）
     */
    @TableField("status")
    private String status;

    /**
     * 人月单价
     */
    @TableField("monthly_rate")
    private BigDecimal monthlyRate;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
} 